<?php      
session_start();
//destruction session

        if (isset($_SESSION["profil"] )){
         
            unset($_SESSION["login"]);
            $_SESSION = array();
            session_destroy();
            echo "<h2>Vous êtes bien déconnecté</h2>";
            
            
        }
        if (isset($_POST["erreur"] )){
         
            echo "<h2>Erreur de connexion</h2>";
          
           
        }
           ?>

        <center>
          
          
           <img src="./image/connect1.png" onload="refresh_div('bandeau', './page/choixMenu.php','POST');"/>
             
<br>
     <form method='POST' name="myform" id="myform" action="javascript:verifMail(document.getElementById('myform'));" >
    
         <table><tr>   
               
                 <th>Email: </th><td><input id="mail" class="log" type="text" name="mail" maxlength="45" placeholder="Votre @dresse mail" onblur="verifiermail()"/></td><td><p id="image"></p></td>
             </tr>

             <tr><th>Mot de passe: </th><td> <input class="log"  id="pass" type="password" name="pass" maxlength="30"></td></tr>

         </table>
             <br>
             <input class="bouton" type="submit" Value="Se connecter"/>
     </form>
            
             

         
        
        
</center>
 